package com.rh.manage;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

/**
 * 应用启动程序
 */
@SpringBootApplication
public class ManageMindApplication {

    public static final ByteArrayOutputStream out = new ByteArrayOutputStream();

    public static void main(String[] args) {
        //转接控制台日志
        PrintStream stream = new PrintStream(out);
        System.setOut(stream);
        System.setErr(stream);
        //启动容器
        SpringApplicationBuilder builder = new SpringApplicationBuilder(ManageMindApplication.class);
        builder.headless(false).run(args);
    }

}
